<div class="breadcrum">
    <p>
        <a href="{$config->site_url('inventarisasi/pengadaan')}">Inventarisasi</a>
        <span></span>
        <small>Pengadaan</small>
    </p>
    <div class="clear"></div>
</div>  
<div class="sub-content">  
    <div class="navigation">  
        <div class="navigation-button">
            <ul>
                <li><a href="{$config->site_url('inventarisasi/pengadaan/add')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Data</a></li>
                <li><a href="{$config->site_url('inventarisasi/pengadaan')}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/icon.notes.blue.png">Daftar Data</a></li> 
            </ul>
            <div class="clear"></div>
        </div>
    </div> 
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template--> 
    <table width="100%" class="table-input">
        <tbody>
            {foreach from=$rs_pengadaan key=no item=result}
            <tr class="headrow">
                <th colspan="4">Tambah Pengadaan</th>
            </tr>
            <tr>
                <td width="15%">Nomor Pengadaan</td>
                <td width="35%">{$result.pengadaan_nomor|default:''}</td> 

                <td>pengadaan_tgl_dist</td>
                <td>{$dtm->get_full_date($result.pengadaan_tgl_dist|default:'')}</td> 
            </tr>
            <tr>
                <td>Tanggal Pengadaan</td>
                <td>{$result.pengadaan_date|default:''}</td> 

                <td>pengadaan_keterangan</td>
                <td>{$result.pengadaan_keterangan|default:''}</td> 
            </tr> 
            <tr>
                <td>Bagian</td>
                <td>{$data.bagian_cd|default:''}</td>    

                <td>pengadaan_att_surat</td>
                <td>{$result.pengadaan_att_surat|default:''}</td> 
            </tr> 
            <tr>
                <td>Lokasi</td>
                <td>{$data.lokasi_cd|default:''}</td>   

                <td>pengadaan_att_dist</td>
                <td>{$result.pengadaan_att_dist|default:''}</td> 
            </tr> 
            <tr>
                <td>pengadaan_ba_dist</td>
                <td>{$result.pengadaan_ba_dist|default:''}</td> 
            </tr> 
            {/foreach}
            <tr class="submit-box">
                <td colspan="4"></td>
            </tr>
        </tbody>
    </table>

    <div class="navigation">  
        <div class="navigation-button">
            <ul>
                <li><a href="{$config->site_url('inventarisasi/pengadaan/add_barang')}/{$rs_pengadaan_id|default:''}"><img alt="" src="{$BASEURL}/resource/doc/images/icon/add-icon.png">Tambah Data</a></li>
                <li><a href="{$config->site_url('inventarisasi/pengadaan/view')}/{$rs_pengadaan_id|default:''}"<img alt="" src="{$BASEURL}/resource/doc/images/icon/icon.notes.blue.png">Daftar Data</a></li> 
            </ul>
            <div class="clear"></div>
        </div>
    </div> 
    <table width="100%" class="table-view">
        <tbody>
            <tr>
                <th width="5%">No</th> 
                <th width="20%">No Inventaris</th> 
                <th width="38%">Nama Barang</th> 
                <th width="15%">Harga Barang</th>
                <th width="10%">Tanggal</th> 
                <th width="12%"></th>
            </tr>
            {foreach from=$rs_barang key=no item=result}
            <tr {if ($no % 2) <> 0}class="blink-row"{/if}>
                <td>{$no}</td>
                <td>{$result.barang_noinventaris}</td>
                <td>{$result.barang_nama}</td> 
                <td>{$result.barang_harga}</td> 
                <td>{$result.mdd}</td> 
                <td align="center">
                    <a href="{$config->site_url({'master/barang/edit/'|cat:$result.barang_id})}" class="button-edit">Edit</a>
                    <a href="{$config->site_url({'master/barang/delete/'|cat:$result.barang_id})}" class="button-hapus">Hapus</a>
                </td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="5">Data masih kosong</td>
            </tr>
            {/foreach}
        </tbody>
    </table> 
</div>